<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('新增房屋')" />
</head>
<body class="white-bg">

	<div class="ibox-content">
         <form class="form-horizontal" id="form-house-add">
         	<div class="form-group">
         		<div>
	            	<label class="col-sm-2 control-label">资产编号：</label>
					<div class="col-sm-4">
			           <input name="assetsNo" class="form-control" type="text">
			           <span class="help-block m-b-none"></span>
			       </div>
		       </div>
                   
               <div>
	               <label class="col-sm-2 control-label">资产名称：</label>
			       <div class="col-sm-4">
			           <input name="assetsName" class="form-control" type="text">
			           <span class="help-block m-b-none"></span> 
			       </div>
       			</div>
       			
               <div>
	               <label class="col-sm-2 control-label">国标分类：</label>
			       <div class="col-sm-4">
			           <input name="assetsCategory" class="form-control" type="text">
			           <span class="help-block m-b-none"></span> 
			       </div>
       			</div>
       			
               <div>
	               <label class="col-sm-2 control-label">自主分类：</label>
			       <div class="col-sm-4">
			           <input name="ownCategory" class="form-control" type="text">
			           <span class="help-block m-b-none"></span> 
			       </div>
       			</div>
       			
       			<div>
	               <label class="col-sm-2 control-label">区域：</label>
			       <div class="col-sm-4">
			           <input name="region" class="form-control" type="text">
			           <span class="help-block m-b-none"></span> 
			       </div>
       			</div>
       			
               <div>
	               <label class="col-sm-2 control-label">坐落：</label>
			       <div class="col-sm-4">
			           <input name="located" class="form-control" type="text">
			           <span class="help-block m-b-none"></span> 
			       </div>
       			</div>
       			
       			<div>
			       <label class="col-sm-2 control-label">建筑面积(㎡)：</label>
			       <div class="col-sm-4">
			           <input name="buildArea" class="form-control" type="number" min="0" step="0.1">
			           <span class="help-block m-b-none"></span>
			       </div>
		       </div>
       			
               <div>
	               <label class="col-sm-2 control-label">取得方式：</label>
			       <div class="col-sm-4">
			           <input name="getWay" class="form-control" type="text">
			           <span class="help-block m-b-none"></span> 
			       </div>
       			</div>
       			
               <div>
	               <label class="col-sm-2 control-label">取得时间：</label>
			       <div class="col-sm-4">
			           <input name="getDate" class="form-control" type="text">
			           <span class="help-block m-b-none"></span> 
			       </div>
       			</div>
		       
               </div>
               <div class="form-group">
               		<div>
               			<label class="col-sm-2 control-label">备注：</label>
                            <div class="col-sm-10">
                                <textarea name="remark" class="form-control" rows="4" ></textarea>
                            </div>
               		</div>
               </div>
           </form>
       </div>
       
    <th:block th:include="include :: footer" />
    <script th:inline="javascript">
        var prefix = ctx + "asset/house"
        $("#form-house-add").validate({
            focusCleanup: true
        });

        function submitHandler() {
            if ($.validate.form()) {
                $.operate.save(prefix + "/add", $('#form-house-add').serialize());
            }
        }
    </script>
</body>
</html>